package org.example.myleet.p436;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[-1]".equals(JsonUtils.toJson(solution.findRightInterval(Parser.parse("[[1,2]]")))));
        Assert.isTrue("[-1,0,1]".equals(JsonUtils.toJson(solution.findRightInterval(Parser.parse("[[3,4],[2,3],[1,2]]")))));
        Assert.isTrue("[-1,2,-1]".equals(JsonUtils.toJson(solution.findRightInterval(Parser.parse("[[1,4],[2,3],[3,4]]")))));
    }
}
